window.onload = function(){

}
 function params(type,ruid,show,deep,field,childrenruid,name,children,filter,fieldname){
    return {
      headers: {
         "Content-Type": "application/x-www-form-urlencoded",
         Authorization: "5465465465654",
       },
       type: `${type}`,//
       rootnode: {
         ruid: `${ruid}`,//id
         exist: "1",
         show: `${show}`,//显示跟
       },
       deep: `${deep}`,//层级
       field: `${field}`,//传参逗号隔开
       key: {
         RUID: `${childrenruid}`,
         name: `${name}`,//名字
         children: `${children}`,//下级

       },
       filter: [filter],
       order: [
         {
           fieldname:`${fieldname}`,//排序
           type: "D",//正序倒序
         },
       ],
    }
 }





//  function  (){}
// //  {
// //    "pageno":0,
// //    "type":"datamodel6",
// //    "codeflag":"1",
// //    "filter":[{"fieldname":"RUID","word":"15f10ff2c000f94"}],
// //    "field":"RUID,code,tablename,entitytemp,name,noreadrightmessage,nodownrightmessage,phonedetailspage,editorpage,detailspage,listpage,phonelistpage,managerpage,phonemanagerpage,listhtml"
// // }